package com.stone.activemqcase.config;

import org.apache.activemq.command.ActiveMQQueue;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import javax.jms.Queue;

@Component
public class BeanConf {
    @Value("${myactivemq}")
    private String mysqueue;

    @Bean
    public Queue queue(){
        return new ActiveMQQueue(mysqueue);
    }
}
